Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc.
Introduction
The ODDesc utilities are simple routines that convert between AEDescs and ODDescs. They simply copy the descriptor type and the raw bytes back and forth. Some care is taken to make sure that the Apple event manager doesn't try to interpret the raw data when we call AECreateDesc.
Creates an AEDesc from an existing ODDesc. If the ODDesc is unintialized (has been allocated but never manipulated), a NULL AEDesc will be created, that is, with descriptor type of NULL and and a null data handle.
Replaces any data in the existing ODDesc with the data from the AEDesc. Note that you must pass an existing ODDesc. To allocate a new empty ODDesc, make the following calls: ODDesc* myODDesc = new ODDesc; myODDesc->Initialize(); If the AEDesc is a NULL AEDesc, that is with descriptor type of NULL and and a null data handle, the ODDesc will be emptied of data.